package cc.rengu.redp.bizimpl.igas.service;

import cc.rengu.redp.bizimpl.igas.domain.PDstChannelCfg;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘玉亮.LL
 * @since 2021-06-09
 */
public interface PDstChannelCfgService extends IService<PDstChannelCfg> {

    IPage<PDstChannelCfg> findByPage(QueryRequest request, PDstChannelCfg info);
    @DS("igas")
    List<PDstChannelCfg> findPDstChannelCfgList(String instId, String dstChannelId, String dstChannelType);

    @Transactional
    void update(PDstChannelCfg entity) throws RedpException;

    String cupsMchntName(String key, String value, String instId);

    List<Map<String, String>> select2List(String q);
}
